/**
* 子模块路由
*/

var router = function ($urlRouterProvider, $stateProvider) {

	$stateProvider
		//游团列表
		.state('app.tgrouplist', {
			url: "/trackafter/tgrouplist",
			views: {
				'main@': {
					template: require('./views/tgrouplist.html'),
					controller: 'tgrouplist'
				}
			},
			resolve: {
        what: function () {
					return 'edit';
				},
				date2str: function (utilservice) {
					return utilservice.date2str;
				},
				str2date: function (utilservice) {
					return utilservice.str2date;
				},
				$uibModalInstance: function () {
					return undefined;
				},
				auditing: function () {
					return false;
				}
			}
		})
		//游客列表
		.state('app.tpeoplelist', {
			url: "/trackafter/tpeoplelist/:gcode",
			views: {
				'main@': {
					template: require('./views/tpeoplelist.html'),
					controller: 'tpeoplelist'
				}
			},
			resolve: {
       
			}
    })
      //创建游客
		.state('app.createpeo', {
			url: "/trackafter/createpeo/:gcode",
			views: {
				'main@': {
					template: require('./views/createpeo.html'),
					controller: 'createpeo'
				}
			},
			resolve: {
       
      }
      
    })

    //编辑游ke
		.state('app.updatepeo', {
			url: "/trackafter/updatepeo/:pcode",
			views: {
				'main@': {
					template: require('./views/updatepeo.html'),
					controller: 'updatepeo'
				}
			},
			resolve: {
       
      }
      
    })

     //编辑游团
		.state('app.updategroup', {
			url: "/trackafter/updategroup/:gcode",
			views: {
				'main@': {
					template: require('./views/updategroup.html'),
					controller: 'updategroup'
				}
			},
			resolve: {
       
      }
      
    })


     //查看预设轨迹
     .state('app.presettrajectory', {
			url: "/trackafter/presettrajectory/:tcode",
			views: {
				'main@': {
					template: require('./views/presettrajectory.html'),
					controller: 'presettrajectory'
				}
			},
			resolve: {
       
      }
      
    })
    
     //查看实际轨迹
     .state('app.practrcal', {
			url: "/trackafter/practrcal/:tcode",
			views: {
				'main@': {
					template: require('./views/practrcal.html'),
					controller: 'practrcal'
				}
			},
			resolve: {
       
      }
      
    })

         //导游列表
         .state('app.guidelist', {
          url: "/trackafter/guidelist",
          views: {
            'main@': {
              template: require('./views/guidelist.html'),
              controller: 'guidelist'
            }
          },
          resolve: {
           
          }
          
        })


         //选择导游
         .state('app.selectguide', {
          url: "/trackafter/selectguide/:tcode",
          views: {
            'main@': {
              template: require('./views/selectguide.html'),
              controller: 'selectguide'
            }
          },
          resolve: {
           
          }
          
        })

         //选择导游
         .state('app.addguide', {
          url: "/trackafter/addguide/:guidecode",
          views: {
            'main@': {
              template: require('./views/addguide.html'),
              controller: 'addguide'
            }
          },
          resolve: {
           
          }
          
        })
        
        //所有轨迹
        .state('app.alltrack', {
          url: "/trackafter/alltrack",
          views: {
            'main@': {
              template: require('./views/alltrack.html'),
              controller: 'alltrack'
            }
          },
          resolve: {
          
          }
          
        })

        //所有轨迹
        .state('app.ytsjtj', {
          url: "/trackafter/ytsjtj",
          views: {
            'main@': {
              template: require('./views/ytsjtj.html'),
              controller: 'ytsjtj'
            }
          },
          resolve: {
          
          }
          
        })
};

module.exports = router;